﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011F7 RID: 4599
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartAetherDivideSceneBattleCsReq : IMessage<StartAetherDivideSceneBattleCsReq>, IMessage, IEquatable<StartAetherDivideSceneBattleCsReq>, IDeepCloneable<StartAetherDivideSceneBattleCsReq>, IBufferMessage
	{
		// Token: 0x17003A40 RID: 14912
		// (get) Token: 0x0600CE0E RID: 52750 RVA: 0x0022B0FF File Offset: 0x002292FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartAetherDivideSceneBattleCsReq> Parser
		{
			get
			{
				return StartAetherDivideSceneBattleCsReq._parser;
			}
		}

		// Token: 0x17003A41 RID: 14913
		// (get) Token: 0x0600CE0F RID: 52751 RVA: 0x0022B106 File Offset: 0x00229306
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartAetherDivideSceneBattleCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A42 RID: 14914
		// (get) Token: 0x0600CE10 RID: 52752 RVA: 0x0022B118 File Offset: 0x00229318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartAetherDivideSceneBattleCsReq.Descriptor;
			}
		}

		// Token: 0x0600CE11 RID: 52753 RVA: 0x0022B11F File Offset: 0x0022931F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideSceneBattleCsReq()
		{
		}

		// Token: 0x0600CE12 RID: 52754 RVA: 0x0022B140 File Offset: 0x00229340
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideSceneBattleCsReq(StartAetherDivideSceneBattleCsReq other) : this()
		{
			this.assistMonsterEntityInfo_ = other.assistMonsterEntityInfo_.Clone();
			this.assistMonsterEntityIdList_ = other.assistMonsterEntityIdList_.Clone();
			this.castEntityId_ = other.castEntityId_;
			this.attackedByEntityId_ = other.attackedByEntityId_;
			this.skillIndex_ = other.skillIndex_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CE13 RID: 52755 RVA: 0x0022B1AA File Offset: 0x002293AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideSceneBattleCsReq Clone()
		{
			return new StartAetherDivideSceneBattleCsReq(this);
		}

		// Token: 0x17003A43 RID: 14915
		// (get) Token: 0x0600CE14 RID: 52756 RVA: 0x0022B1B2 File Offset: 0x002293B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<AssistMonsterEntityInfo> AssistMonsterEntityInfo
		{
			get
			{
				return this.assistMonsterEntityInfo_;
			}
		}

		// Token: 0x17003A44 RID: 14916
		// (get) Token: 0x0600CE15 RID: 52757 RVA: 0x0022B1BA File Offset: 0x002293BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AssistMonsterEntityIdList
		{
			get
			{
				return this.assistMonsterEntityIdList_;
			}
		}

		// Token: 0x17003A45 RID: 14917
		// (get) Token: 0x0600CE16 RID: 52758 RVA: 0x0022B1C2 File Offset: 0x002293C2
		// (set) Token: 0x0600CE17 RID: 52759 RVA: 0x0022B1CA File Offset: 0x002293CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CastEntityId
		{
			get
			{
				return this.castEntityId_;
			}
			set
			{
				this.castEntityId_ = value;
			}
		}

		// Token: 0x17003A46 RID: 14918
		// (get) Token: 0x0600CE18 RID: 52760 RVA: 0x0022B1D3 File Offset: 0x002293D3
		// (set) Token: 0x0600CE19 RID: 52761 RVA: 0x0022B1DB File Offset: 0x002293DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AttackedByEntityId
		{
			get
			{
				return this.attackedByEntityId_;
			}
			set
			{
				this.attackedByEntityId_ = value;
			}
		}

		// Token: 0x17003A47 RID: 14919
		// (get) Token: 0x0600CE1A RID: 52762 RVA: 0x0022B1E4 File Offset: 0x002293E4
		// (set) Token: 0x0600CE1B RID: 52763 RVA: 0x0022B1EC File Offset: 0x002293EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillIndex
		{
			get
			{
				return this.skillIndex_;
			}
			set
			{
				this.skillIndex_ = value;
			}
		}

		// Token: 0x0600CE1C RID: 52764 RVA: 0x0022B1F5 File Offset: 0x002293F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartAetherDivideSceneBattleCsReq);
		}

		// Token: 0x0600CE1D RID: 52765 RVA: 0x0022B204 File Offset: 0x00229404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartAetherDivideSceneBattleCsReq other)
		{
			return other != null && (other == this || (this.assistMonsterEntityInfo_.Equals(other.assistMonsterEntityInfo_) && this.assistMonsterEntityIdList_.Equals(other.assistMonsterEntityIdList_) && this.CastEntityId == other.CastEntityId && this.AttackedByEntityId == other.AttackedByEntityId && this.SkillIndex == other.SkillIndex && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CE1E RID: 52766 RVA: 0x0022B288 File Offset: 0x00229488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.assistMonsterEntityInfo_.GetHashCode();
			num ^= this.assistMonsterEntityIdList_.GetHashCode();
			if (this.CastEntityId != 0U)
			{
				num ^= this.CastEntityId.GetHashCode();
			}
			if (this.AttackedByEntityId != 0U)
			{
				num ^= this.AttackedByEntityId.GetHashCode();
			}
			if (this.SkillIndex != 0U)
			{
				num ^= this.SkillIndex.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CE1F RID: 52767 RVA: 0x0022B315 File Offset: 0x00229515
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CE20 RID: 52768 RVA: 0x0022B31D File Offset: 0x0022951D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CE21 RID: 52769 RVA: 0x0022B328 File Offset: 0x00229528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.assistMonsterEntityInfo_.WriteTo(ref output, StartAetherDivideSceneBattleCsReq._repeated_assistMonsterEntityInfo_codec);
			if (this.SkillIndex != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.SkillIndex);
			}
			this.assistMonsterEntityIdList_.WriteTo(ref output, StartAetherDivideSceneBattleCsReq._repeated_assistMonsterEntityIdList_codec);
			if (this.AttackedByEntityId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.AttackedByEntityId);
			}
			if (this.CastEntityId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.CastEntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CE22 RID: 52770 RVA: 0x0022B3C0 File Offset: 0x002295C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.assistMonsterEntityInfo_.CalculateSize(StartAetherDivideSceneBattleCsReq._repeated_assistMonsterEntityInfo_codec);
			num += this.assistMonsterEntityIdList_.CalculateSize(StartAetherDivideSceneBattleCsReq._repeated_assistMonsterEntityIdList_codec);
			if (this.CastEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CastEntityId);
			}
			if (this.AttackedByEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AttackedByEntityId);
			}
			if (this.SkillIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillIndex);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CE23 RID: 52771 RVA: 0x0022B454 File Offset: 0x00229654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartAetherDivideSceneBattleCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.assistMonsterEntityInfo_.Add(other.assistMonsterEntityInfo_);
			this.assistMonsterEntityIdList_.Add(other.assistMonsterEntityIdList_);
			if (other.CastEntityId != 0U)
			{
				this.CastEntityId = other.CastEntityId;
			}
			if (other.AttackedByEntityId != 0U)
			{
				this.AttackedByEntityId = other.AttackedByEntityId;
			}
			if (other.SkillIndex != 0U)
			{
				this.SkillIndex = other.SkillIndex;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CE24 RID: 52772 RVA: 0x0022B4DA File Offset: 0x002296DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CE25 RID: 52773 RVA: 0x0022B4E4 File Offset: 0x002296E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 18U)
					{
						this.assistMonsterEntityInfo_.AddEntriesFrom(ref input, StartAetherDivideSceneBattleCsReq._repeated_assistMonsterEntityInfo_codec);
						continue;
					}
					if (num == 24U)
					{
						this.SkillIndex = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						goto IL_5F;
					}
				}
				else
				{
					if (num == 58U)
					{
						goto IL_5F;
					}
					if (num == 80U)
					{
						this.AttackedByEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.CastEntityId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_5F:
				this.assistMonsterEntityIdList_.AddEntriesFrom(ref input, StartAetherDivideSceneBattleCsReq._repeated_assistMonsterEntityIdList_codec);
			}
		}

		// Token: 0x040052A6 RID: 21158
		private static readonly MessageParser<StartAetherDivideSceneBattleCsReq> _parser = new MessageParser<StartAetherDivideSceneBattleCsReq>(() => new StartAetherDivideSceneBattleCsReq());

		// Token: 0x040052A7 RID: 21159
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052A8 RID: 21160
		public const int AssistMonsterEntityInfoFieldNumber = 2;

		// Token: 0x040052A9 RID: 21161
		private static readonly FieldCodec<AssistMonsterEntityInfo> _repeated_assistMonsterEntityInfo_codec = FieldCodec.ForMessage<AssistMonsterEntityInfo>(18U, EggLink.DanhengServer.Proto.AssistMonsterEntityInfo.Parser);

		// Token: 0x040052AA RID: 21162
		private readonly RepeatedField<AssistMonsterEntityInfo> assistMonsterEntityInfo_ = new RepeatedField<AssistMonsterEntityInfo>();

		// Token: 0x040052AB RID: 21163
		public const int AssistMonsterEntityIdListFieldNumber = 7;

		// Token: 0x040052AC RID: 21164
		private static readonly FieldCodec<uint> _repeated_assistMonsterEntityIdList_codec = FieldCodec.ForUInt32(58U);

		// Token: 0x040052AD RID: 21165
		private readonly RepeatedField<uint> assistMonsterEntityIdList_ = new RepeatedField<uint>();

		// Token: 0x040052AE RID: 21166
		public const int CastEntityIdFieldNumber = 13;

		// Token: 0x040052AF RID: 21167
		private uint castEntityId_;

		// Token: 0x040052B0 RID: 21168
		public const int AttackedByEntityIdFieldNumber = 10;

		// Token: 0x040052B1 RID: 21169
		private uint attackedByEntityId_;

		// Token: 0x040052B2 RID: 21170
		public const int SkillIndexFieldNumber = 3;

		// Token: 0x040052B3 RID: 21171
		private uint skillIndex_;
	}
}
